/* 图层系统样式 */
.layer-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.layer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.track-layer {
    position: relative;
    width: 100%;
    height: 100%;
}

.segment-container {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.2s ease;
}

.segment-container:hover {
    transform: scale(1.05) !important;
    z-index: 1000;
}

.segment-element {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    border: 2px solid transparent;
    backdrop-filter: blur(4px);
    min-width: 80px;
    transition: all 0.2s ease;
}

.segment-element:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.element-icon {
    font-size: 16px;
    line-height: 1;
}

.element-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.element-name {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.element-duration {
    color: #a0a0a0;
    font-size: 10px;
    line-height: 1;
}

/* 不同轨道类型的样式 */
.video-element {
    border-left: 3px solid #3b82f6;
}

.photo-element {
    border-left: 3px solid #10b981;
}

.text-element {
    border-left: 3px solid #f59e0b;
}

/* 轨道名称标签 */
.track-layer::before {
    content: attr(data-track-name);
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1001;
    pointer-events: none;
}

/* 加载和错误状态 */
.layer-system.loading,
.layer-system.error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.loading-text,
.error-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.error-text {
    color: #ff6b6b;
}
